package xyz.xiezc.spider.common;


import cn.hutool.core.util.IdUtil;
import lombok.Data;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author wb-xzc291800
 * @date 2019/04/02 17:10
 */
@Data
public class Request {





    String id;

    public Request() {
        id = IdUtil.fastUUID();
    }

    Map<String, Object> extra = new HashMap<>();


    public void addExtra(String key, Object val) {
        extra.put(key, val);
    }

    public void addExtra(Map<String, Object> extraMap) {
        extra.putAll(extraMap);
    }


    String url;
    String method = "get";
    Map<String, List<String>> header = new HashMap<>();

    /**
     * 是否是重复的请求
     */
    boolean isReapet;

    RequestBody requestBody;
}
